/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.oop;

/**
 * <p>Project: app2022 - B
 * <p>Powered by webrx On 2022-01-10 17:46:22
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class B extends A{
    public int id = 60;

    public void show(){
        System.out.println("ok1");
        System.out.println("ok2");
        System.out.println("ok3");

        //如果本类有id,则使用本类，没有，则使用你类，
        System.out.println(this.id);
        System.out.println(id);

        //想使用父类的id,
        System.out.println(super.id);
    }
}
